package _04打印对象信息;

public class Student {
	// 属性
	String name;
	int age;
	String className;
	
	// 方法
	public void eat()
	{
		System.out.println(name+"在吃饭");
	}
	
	public void study()
	{
		System.out.println(name+"在学习");
	}
	
	public void sleep()
	{
		System.out.println(name+"zzzzzzz");
	}

	@Override
	public String toString() {
		return "Student [name=" + name + ", age=" + age + ", className=" + className + "]";
	}
	}


